#include "widgetfactory.h"
#include "feclockwidget.h"

FePluginWidgetFactory::FePluginWidgetFactory(QObject *parent)
: QObject(parent)
{
}

FePluginWidgetFactory::~FePluginWidgetFactory()
{
}

QStringList FePluginWidgetFactory::supportedWidgetTypes() const
{
	return QStringList()
		<< "fe.clock"
		;
}

QWidget *FePluginWidgetFactory::createWidget(const QString &type, QWidget *parent)
{
	QWidget *w;
	if(type == "fe.clock")
	{
		w = new FeClockWidget(parent);
	}
	return w;
}